{extend name="main/index" /}
{block name="main"}
<div class="main-content">
    <div class="breadcrumbs" id="breadcrumbs">
        <script type="text/javascript">
            try{ace.settings.check('breadcrumbs' , 'fixed')}catch(e){}
        </script>

        <ul class="breadcrumb">
            <li>
                <i class="icon-home home-icon"></i>
                <a href="">人力资源</a>
            </li>
        </ul><!-- .breadcrumb -->

        <div class="nav-search" id="nav-search">
            <form class="form-search">
                <span class="input-icon">
                    <input type="text" placeholder="Search ..." class="nav-search-input" id="nav-search-input" autocomplete="off" />
                    <i class="icon-search nav-search-icon"></i>
                </span>
            </form>
        </div><!-- #nav-search -->
    </div>

    <div class="page-content">
        <div class="row">
            <div class="col-xs-12">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="table-responsive">
                            <a href="{:url('admin/manpower/addman')}" class="btn btn-info">添加人力资源</a>
                            <br><br>
                            <table id="sample-table-2" class="table table-striped table-bordered table-hover">
                                <thead>
                                    <tr>
                                        <th>ID</th>
                                        <th>姓名</th>
                                        <th>出生日期</th>
                                        <th class="hidden-480">毕业院校</th>

                                        <th>
                                            学历
                                        </th>
                                        <th class="hidden-480">专业</th>
                                        <th class="hidden-480">联系方式</th>
                                        <th class="hidden-480">现任职位</th>
                                        <th class="hidden-480">入职日期</th>
                                        <th class="hidden-480">离职日期</th>
                                        <th class="hidden-480">状态</th>
                                        <th class="hidden-480">操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    {volist name="manpower" id="v"}

                                    <tr>
                                        <td>{$v['id']}</td>
                                        <td>{$v['name']}</td>
                                        <td>{$v['birthday']}</td>
                                        <td>{$v['graduate_institutions']}</td>
                                        <td>{$v['education_background']}</td>
                                        <td>{$v['major']}</td>
                                        <td>{$v['tel']}</td>
                                        <td>
                                            <?php if ($v['incumbent_position']==''): ?>
                                                无
                                            <?php else: ?>
                                                {$v['incumbent_position']}
                                            <?php endif ?>
                                        </td>
                                        <td>
                                            <?php if ($v['entry_time']==''): ?>
                                                无
                                            <?php else: ?>
                                                {$v['entry_time']}
                                            <?php endif ?>
                                        </td>
                                        <td>
                                            <?php if ($v['out_time']==''): ?>
                                                无
                                            <?php else: ?>
                                                {$v['out_time']}
                                            <?php endif ?>
                                        </td>
                                        <td>
                                            <?php if ($v['status'] == 1): ?>
                                                入职
                                            <?php else: ?>
                                                投简 <u><a href="{:url('admin/manpower/dostatus', ['id' => $v['id']])}" class="btn btn-success btn-xs">通过</a></u>
                                            <?php endif ?>
                                        </td>
                                        <td>
                                            <a href="{:url('admin/manpower/editman', ['id' => $v['id']])}" class="btn btn-primary btn-xs">修改</a> |
                                            <a href="{:url('admin/manpower/del', ['id' => $v['id']])}" class="btn btn-danger del-btn btn-xs">删除</a>
                                        </td>
                                    </tr>
                                    {/volist}

                                </tbody>
                            </table>
                        </div>
                        {$manpower->render()}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
{/block}


